// dlg.txt

//MK edit
//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 62;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "It looks like you can enter this ruin from the eastern direction. There is a tiny oasis to the north and an open gate to the south. You're far from the first to pass through, though. Other people have left plenty of tracks in the sand.";
	text2 = "Then you get close to the entrance and see that you are not even alone. A lone Dhagan has set up a shop here. He sits comfortably in the shadow of a rock overhang and has arranged his goods around a carpet.";
	text3 = "He waves when he sees you, unconcerned about the brigands and predators that hunt out here.";
	code =
		sf(this_town,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0;
	text1 = "You are between two huge iron gates. The portcullis to the south is closed, blocking your path into the ruins.";
	text2 = "The wheel to the east looks like it's been recently tended to and oiled. Turning it might let you get farther in. However, using it might have other, unpredictable effects.";
	code =
		sf(this_town,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0;
	text1 = "You enter a narrow valley, fully exposed to the harsh sunlight above. Several stone buildings face on the clearing. A small spring provides water, enabling anyone trapped in here to survive. For a little while, anyway.";
	text2 = "You hear a gasp from the hall across the valley to the east. You look across the open space and see a warrior staring at you. He wears mismatched armor and holds a wicked, barbed spear in his hands. He also looks very hungry.";
	text3 = "You stare at each other. He looks like a brigand, but he isn't immediately hostile. He turns and runs into the tunnel.";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0;
	text1 = "There is a huge cavern under the ruins. The air is blissfully cool and moist, chilled by drafts from the chasms to the south. You wonder why the brigands above never took shelter down here.";
	text2 = "Then you feel it. Energy in the air. Your hair stands on end. When you entered the cavern, powerful magic sprang to life.";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "__";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0;
	text1 = "__";
	code =
		sf(this_town,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "__";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "__";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "__";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "__";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0;
	text1 = "__";
	code =
		sf(this_town,12,1);
	break;

// MIXED

begintalknode; 
	tag = 13;
	condition = 1;
	text1 = "__";

begintalknode; // letter box
	tag = 14;
	condition = 1;
	text1 = "This box is mostly empty. You find some torn socks, a few crumbs of bread, and a letter:";
	text2 = "_Nilz, sorry for running. Too good an opportunity. Want to get there first. Undiscovered ruin. A lost library, in the Aram Peaks! Cold but easy to sneak through._";
	text3 = "_Found the location and the code. Top left. Down three. Down down right right right right. Right right up up._";
	text4 = "_No fears. Just another ruin. Everything there will be frozen solid. Back soon with the loot. - Ezequiel._";
	code =
		sf(62,12,1);
	break;

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "The stairway is hopelessly blocked with tons of rubble.";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "Chief Malaki falls to the ground, very surprised and very dead. You see a key hanging around his neck. You liberate it.";
	text2 = "Pity nobody will hear about this battle. It seems that the Rokaj needs to learn a bit more respect for Haven.";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "The eyebeast shimmers and vanishes. Just the sort of magical trickery you expect from these creatures.";
	text2 = "A moment later it reappears farther to the south. It points its eyestalks at you, ready to protect its hidden lair.";
	code =
		erase_char(6238);
		spawn_creature(6242);
		set_attitude(6242,10);
	break;
	
begintalknode;
	tag = 18;
	condition = 1;
	text1 = "At last, the eyebeast has run out of places to escape to. It falls to the ground with a sickening, wet thud.";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "Watch yourself, Haven.";
	text2 = "This is a Ro claim.";
	text3 = "Talk to Malaki.";
	text4 = "Malaki speaks for us.";
	action = SPEECH_BUBBLE;
	code =
		cs();
		as(get_ran(1,1,4));
	break;
	
begintalknode;
	tag = 20;
	condition = 1;
	text1 = "Once again, the aggravating eyebeast vanishes and reappears on the other side of a chasm.";
	code =
		erase_char(6242);
		spawn_creature(6243);
		set_attitude(6243,10);
	break;

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "The eyebeast vanishes again. This time, you can't immediately see where it got to.";
	code =
		erase_char(6243);
		spawn_creature(6244);
		set_attitude(6244,10);
	break;

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

//// Nilzichek the Profferer

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "You approach the man sitting on the carpet, surrounded by a wild array of goods. It's hard to see his face, partly because of the hood of his robe and partly because of the checkered mask he wears. He favors you with a broad grin.";
	text2 = "His eyes flick over the insignia on your shoulder. _The [P]! I knew you were here, but I never thought you would visit me here._";
	text3 = "_I am Nilzichek the Profferer, wanderer and procurer of useful goods. We travel and trade all over the peaks we call our home._";
	text5 = "Nilzichek the Profferer invites you to sit with him. He likes discussing the chaos afflicting the Rokaj, though he seems to have no information of actual value to you. He constantly tries to sell you one trinket or another.";
	text6 = "Occasionally, the light catches on the gaudy necklace he wears, sending annoying flashes into your eyes.";
	action = INTRO;
	
begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_What are you doing in this wild place?_";
	text1 = "_Well, we're running our business, as you can see! Buying and selling only the strangest and most unique artifacts of the dark places of the Rokaj. We have long sought the finest of goods, for the benefit of the most discerning and adventurous customers._";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_And how do you get these goods?_";
	text1 = "_Many of them are scavenged from ruins. A land so enamored of war as the Rokaj produces ruins at an admirable rate._";
	text2 = "_We also buy quality goods from those who obtain such things._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_Why did you come to this ruin?_";
	text1 = "He looks at the open gate to the south and smiles. _Oh, we've been picking this ruin for years. Lost civilization, you know. Lots of peculiar stuff. Also, this is a good hiding place for, um, wandering raiders, and we buy their salvage._";

begintalknode;
	state = 12;
	nextstate = 11;
	condition = 1;
	question = "_And are all of these goods legal?_";
	text1 = "He coughs. _Legality is such a flexible concept in the Rokaj. Honestly, sometimes I wonder if we have laws at all._";
	text2 = "_Don't worry, Haven. Everything I have here was legally obtained. I swear it a thousand times!_ And yet, you have your doubts.";

begintalknode;
	state = 12;
	nextstate = 11;
	condition = 1;
	question = "_You do have a lot of stuff._";
	text1 = "_My inventory turns over very quickly. If you see something you like, pay me for it, and pay well, for who knows when it will vanish?_";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Are you from the Rokaj?_";
	text1 = "_Yes! Dhagan born and bred. I was raised in only the finest alleys and slums, the cauldrons in which determined Ro are cooked to perfection._";

begintalknode;
	state = 11;
	nextstate = 13;
	condition = 1;
	question = "_Aren't you scared to be out here alone?_";
	text1 = "_Not at all. All welcome the arrival of Nilzichek the Profferer!_";

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_Know anything about this ruin? Ghosts?_";
	text1 = "_Oh, I'm sure any ghosts in this ruin got bored and wandered off centuries ago. Scavengers have been picking it clean of treasures ever since._";

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_What about wild beasts?_";
	text1 = "_They avoid the ruins. Scared of something, I suppose._";

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_What about brigands?_";
	text1 = "_Brigands would never trouble Nilzichek and company. They are, after all, dependent on the services we provide._";

begintalknode;
	state = 10;
	nextstate = 14;
	condition = 1;
	question = "_How do you get goods to trade?_";
	text1 = "_Trade and scavenge. However, we have very high standards._";

begintalknode;
	state = 14;
	nextstate = -1;
	condition = 1;
	question = "_High standards how?_";
	text1 = "_My partner and I like to travel light. We only want to hurt our backs carrying the most valuable, useful, or unique items._";
	
begintalknode;
	state = 14;
	nextstate = -1;
	condition = 1;
	question = "_What if an item doesn't meet your standards?_";
	text1 = "_Then there are a thousand low-grade fences and scoundrels who will deal with you. We have standards._";

begintalknode;
	state = 14;
	nextstate = 10;
	condition = gf(62,11) == 0;
	question = "_You said that you have a partner?_";
	text1 = "You note a quick flicker of emotion. Despite his calm, cocky exterior, something is troubling him. _I do. Ezequiel has been my friend and business partner for many a year. However, he is ... absent. I confess concern._";
	code = 
		set_flag(62,11,1);
		toggle_quest(66,1);
	break;

begintalknode;
	state = 10;
	nextstate = 15;
	condition = gf(62,11) == 1 || gf(62,11) == 2;
	question = "_Tell me about your lost partner, Ezequiel._";
	text1 = "_He is my right arm. Or, more accurately, he is my fast legs and grabbing hands. He is the sneaky scavenger, and I am the cunning trader. He went into the ruins over two weeks ago. He has not emerged._";
	code = 
		set_flag(62,11,2);
		toggle_quest(66,3);
	break;

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_How long have you and Ezequiel worked together?_";
	text1 = "_Since our teens. Our combined skills lifted us out of the slums and into a tolerable adult life._";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_Why did he enter the ruins?_";
	text1 = "_To scavenge. Looking for antiquities, magic, and other treasures. These ruins are heavily picked, but, if anyone could find something of value in the rubble, he could._";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_How did you learn about this place?_";
	text1 = "_Bribing nomads. These ruins are so ancient that the local tribal folklore describes them as having 'witnessed the first sunrise.'_";

begintalknode;
	state = 15;
	nextstate = 16;
	condition = 1;
	question = "_Why can't you go rescue him?_";
	text1 = "_I am a trader. I am no adventurer. Also, since he vanished, a large group of brigands entered the ruins. Didn't like their look. Don't want to be trapped in there with them._";
	text2 = "_If someone could help me find him, I would put my considerable resources at their disposal._";

begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_And you would like my help?_";
	text1 = "_Well, if you were poking around in some nice, historical ruins anyway, I would make it worth your effort if you kept your eyes open._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(62,11) == 2 && gf(62,12) > 0;
	question = "_I found a letter from Ezequiel._ Tell him about it.";
	text1 = "Nilzichek listens attentively, growing more irritated by the moment. _The fool! Going to those peaks? Alone? Without telling me? Curse his mad impulses for adventure. There is no way I can survive the Aram Peaks, even if I could get there in these mad times._";
	text2 = "He gives you a polished stone with a rune etched on it. _A bit of gratitude for your aid, Havenite. Now I have to plan. How can I find someone to help me recover my lost friend, bearing in mind that they might be able to get amazing treasures in the doing?_";
	text3 = "He gives you a hopeful look.";
	code = 
		set_flag(62,11,3);
		toggle_quest(66,4);
		award_party_xp(MED_QUEST_XP);
		reward_give(429);

	break;		

begintalknode;
	state = 10;
	nextstate = 17;
	condition = gf(62,11) == 3 || gf(62,11) == 4;
	question = "_Where do you think Ezequiel is?_";
	text1 = "_He says he's going to this ancient library, owned by the nameless folk who built this ruin. Up in the Aram Peaks. You know all that I do._";
	text2 = "_Still, if you can find and save him, even though the claim to the library is ours, we will give you the pick of the first artifacts recovered from it. Promises to be of great value._";
	code = 
		set_flag(62,11,4);
		toggle_quest(66,5);
	break;

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about the Aram Peaks._";
	text1 = "_The highest mountains of the Rokaj. Cold and deadly. Only used for matters of great political ceremony. Only fools go up there unless they truly have something to prove._";

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_What do you think this library is?_";
	text1 = "He shrugs. _Could be anything, really. I don't know anything about the people who built this place, not even their name for themselves._";

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_Why did he go without you?_";
	text1 = "_Because he always goes off without me. He's the hunter and the scavenger. I'm the trader. He's also an impulsive fool._";
	text2 = "_He just doesn't usually go this far._";

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_The letter mentioned an 'entry code'._";
	text1 = "_Seems significant, though I have no idea what it means._";

begintalknode;
	state = 10;
	nextstate = 18;
	condition = gf(62,11) == 4 && gf(63,11) > 0;
	question = "_I rescued Ezequiel._ Tell the tale.";
	text1 = "Nilzichek listens with awe and anger. _And he didn't return with you? He is truly testing my patience and our friendship. However, I suppose I must trust him._";
	text2 = "_You have done a great service for me, Havenite. As a reward, well, we have accumulated quite a bit of wealth. Valuable investments. I will send some of the supplies we have found to your forts. I hope they are of use._";
	text3 = "_I will also make sure that the Rokaj hears what an ingenious and adventurous fellow you are. Might be an advantage to you._";
	code = 
		set_flag(62,11,5);
		toggle_quest(66,10);
		award_party_xp(BIG_QUEST_XP);
		ro_faction(2);
		activate_mine_resource(37);
	break;		

begintalknode;
	state = 18;
	nextstate = -1;
	condition = 1;
	question = "_He said he will be back soon, with 'strange items.'_";
	text1 = "_I both anticipate and dread his return. Who knows what cursed artifacts he will return with? Perhaps something that will shake the Rokaj to its foundations._";
	text2 = "_Oh well. As long as we turn a profit._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(62,11) < 2;
	question = "_I would like to trade with you._";
	text1 = "A quick flicker of emotion. Despite his calm, cocky exterior, something is troubling him.";
	text2 = "_Normally, I would be thrilled. However, my heart isn't in a haggling mood at the moment. I'm currently short one friend. Ezequiel has been my friend and business partner for many a year. However, he is ... absent. I confess concern._";

	code = 
		if (gf(62,11) == 0) {
			set_flag(62,11,1);
			toggle_quest(66,1);
			}
	break;

begintalknode;
	state = 10;
	nextstate = 19;
	condition = gf(62,11) > 2;
	question = "_I would like to trade with you._";
	text1 = "_You have more than earned the right! I am happy to buy and sell, and I will not cheat you. Only the best prices!_";

begintalknode;
	state = 19;
	nextstate = -1;
	condition = 1;
	question = "_What do you have for sale?_";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Nilzichek",
		  "shopdesc.",
		  41,0,0);	
	break;

begintalknode;
	state = 19;
	nextstate = -1;
	condition = 1;
	question = "_I have things I want to sell._";
	text1 = "You conclude your business.";	
	code = 
		start_alter_items(0);
	break;

begintalknode;
	state = 19;
	nextstate = -1;
	condition = 1;
	question = "_That is all I need._";
	text1 = "_Then I thank you for easing my solitude, and I hope that your bleached bones don't end up decorating our wasteland._";
	action = END_TALK;
	
	
// entrywheel

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "This wheel is very old, but brigands and scavengers have kept it in barely working condition. Some of it looks like recent construction. Maybe someone foolishly tried to make this ruin into a working fortress.";
	text2 = "Turning it may have unpredictable effects.";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(62,21) == 0 && party_within_dist(21,36,6) == FALSE;
	question = "Turn the wheel.";
	text1 = "You decide that it would be wise to gather your entire group before you turn the wheel.";
	action = END_TALK;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(62,21) == 0 && party_within_dist(21,36,6);
	question = "Turn the wheel.";
	text1 = "You turn the wheel. There is lots of clattering and clanking. The ground vibrates under your feet.";
	text2 = "Then the gate to the south opens. That's the good news. The gate to the north closing behind you is less great.";
	action = END_TALK;
	code =
		play_sound(18);
		sf(62,20,0);
		sf(62,21,1);
	break;
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(62,21) > 0;
	question = "Turn the wheel.";
	text1 = "It is stuck. You can't figure out how to get it to turn.";
	action = END_TALK;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Leave the wheel alone.";
	text1 = "Done.";
	action = END_TALK;

	
// Chief Malaki

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "This man is the living image of what most outsiders think of the Ro: Stern. Grim. Scarred. Capable of immediate violence. He looks at you as if you are barely worthy of sharing his air.";
	text2 = "_Someone intruding on our claim? Havenite, from the look of it. I am Chief Malaki of the Low Dhaga. Normally, you would pay for your intrusion. However, you are trapped like we are. Thus, I spare you._";
	text3 = "_What is more, I might deal with you._";
	text5 = "Chief Malaki stares at you grimly.";
	action = INTRO;
	code =
		sf(62,13,1);
	break;

begintalknode;
	state = 70;
	nextstate = 71;
	condition = 1;
	question = "_What are you doing here?_";
	text1 = "_We came here to hide, rest, and scavenge. This ruin belongs to the Low Dhaga. Any may poke around in it._";

begintalknode;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "_Are you raiders? I've had trouble with raiders._";
	text1 = "_We know the Low Dhaga is plagued by raiders from the north, fighting with ka-beasts. We want nothing to do with them. We do not want to fight Haven._";

begintalknode;
	state = 71;
	nextstate = 70;
	condition = 1;
	question = "_You seem to be trapped._";
	text1 = "_As are you. Therefore, we must have a brief peace._";

begintalknode;
	state = 71;
	nextstate = 70;
	condition = 1;
	question = "_You should be polite._";
	text1 = "He snorts. _Be grateful to keep your gear, Haven. And your head._";

begintalknode;
	state = 70;
	nextstate = 72;
	condition = 1;
	question = "_You know the trader outside?_";
	text1 = "_Nilzichek? Aye. We know him. Useful to all who need ... to sell things. All raiders and brigands leave him alone, by agreement._";

begintalknode;
	state = 72;
	nextstate = -1;
	condition = gf(62,11) == 2;
	question = "_He's looking for Ezequiel._";
	text1 = "_His scavenger? Lost in the ruins? Haven't seen him. Though ... there are parts of the ruins we can't reach._";

begintalknode;
	state = 70;
	nextstate = 73;
	condition = 1;
	question = "_You want to make a deal?_";
	text1 = "_We are both trapped in this ruin. Working together, we might escape. That is the deal, and survival for all is the reward._";

begintalknode;
	state = 73;
	nextstate = -1;
	condition = 1;
	question = "_Why were you in here?_";
	text1 = "_We came to loot and rest. We were riding through the Low Dhaga and the wilds to the east._ You know better than to ask what they were doing.";

begintalknode;
	state = 73;
	nextstate = 74;
	condition = 1;
	question = "_How did you get trapped?_";
	text1 = "_Same as you. We turned the wheel. The gate closed behind us. Usually, we can escape through the northern gate. The wheel that opens it is in that direction. However ... Normally, nothing guards the north gate._";
	text2 = "_Since we were gone, ghosts appeared there. Angry dead, speaking whispers and gibberish. We can't reach the wheel._";

begintalknode;
	state = 74;
	nextstate = 75;
	condition = 1;
	question = "_What do you want from me?_";
	text1 = "_We are brave warriors, don't doubt it. Still, we won't fight the dead._ The other brigands shudder. _You can do it for us. Take the curses onto yourselves._ Malaki is a bit superstitious.";
	text2 = "_Then you can go out, and we will follow._";
	
begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_I could use some help._";
	text1 = "Chief Malaki shakes his head. _The Ro respects ghosts. Haven doesn't care about them, except as obstacles to be removed._ This is true enough.";
	text2 = "_Go return them to their rest. Then we can all flee._";
	action = END_TALK;

begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_I'll see what I can do._";
	text1 = "Chief Malaki nods. _I knew you would. Haven doesn't care about ghosts, except as obstacles to be removed._ This is true enough.";
	text2 = "_Go return them to their rest. Then we can all flee._";
	action = END_TALK;

begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_I think I'll just kill some brigands instead._ Attack.";
	text1 = "There is no advantage of surprise. The brigands expected a fight at some point. Malaki roars an alarm, and they draw their blades.";
	action = END_TALK;
	code =
		sf(62,14,1);
		set_attitude(30002,10);
		set_attitude(6218,10);
	break;
	
begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "_I'll be moving on._";
	text1 = "_Go where you want. Until the ghosts are gone, there is no peace and no escape._";
	action = END_TALK;
	

//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = "There are several ghosts circling this altar. They are substantial and full of energy. You are able to see them clearly. Their arms and weapons are of an ancient, unfamiliar style. Their faces and hairstyles are strange.";
	text2 = "When you get close, they turn. They look angry. One of them says something. The words are loud, clear, and completely unintelligible.";


begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "_Who are you?_";
	text1 = "They take turns muttering something. Again, you can't understand.";

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "_Please let me by?_";
	text1 = "Something about your tone is infuriating to them. They let out angry hisses.";

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "_Maybe I'll just go._";
	text1 = "This response triggers something in them. They float forward and inspect you. Your presence enrages them. Probably jealousy of the living. They howl and swoop forward.";
	action = END_TALK;
	code =
		set_attitude(30003,10);
	break;
	
begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "_I'd better just remove you to be sure._ Attack.";
	text1 = "You draw your weapons. The ghosts know how to recognize a threat when they see one. They howl and swoop forward.";
	action = END_TALK;
	code =
		set_attitude(30003,10);
	break;

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = "You emerge from the crypt and see that a band of brigands is waiting for you. They don't seem intent on an immediate escape. Their weapons are drawn, and they are grinning. They look at you like prey.";
	text2 = "Their leader says, _You should have stopped in for a visit before you met the ghosts, Haven. You could have had a little rest before we took you apart._";
	text3 = "Chief Malaki says, _I'm glad you stopped in for a visit before you met the ghosts, Haven. In some distant time, other adventurers may find your bones and wonder who these poor nameless souls were._";
	code =
		if (gf(62,13) == 0)
			rs(3);
			else rs(2);
		set_attitude(6225,10);
		set_attitude(30005,10);
	break;
	
begintalknode;
	state = 130;
	nextstate = -1;
	condition = gf(62,13) == 0;
	question = "_Who are you?_";
	text1 = "_I am Chief Malaki, mighty brigand of the wastes! Soon, we will escape from this prison, newly enriched with your wealth._";

begintalknode;
	state = 130;
	nextstate = -1;
	condition = gf(62,13) > 0;
	question = "_Wait. Are you betraying me?_";
	text1 = "_We are! We considered sparing you, but you seemed scrawny in person. Just a pampered noble, far from anyone who knows where you are._";

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "_You have no chance against me._";
	text1 = "_Really? You don't seem like much. We will avenge the pride of the Ro, and your bones will never be found._";

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "_Last warning. Leave or die._";
	text1 = "_We choose neither. Raise your weapon, Haven. Meet your end with dignity!_";
	action = END_TALK;
	
begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "_Actually, I like to hunt brigands._ Attack.";
	text1 = "Chief Malaki laughs. _You meet your end with pride! Pity nobody will ever hear your story. Warriors, charge!_";
	action = END_TALK;

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				
